package com.sc.nft.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sc.nft.enums.ProductInfoSubscribeEnum;
import com.sc.nft.sup.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
/**
 * 商品申购配置表(DigitalCollectionProductInfoSubscribe)表实体类
 *
 * @author 王伟成
 * @since 2024-05-13 16:20:42
 */
@Data
@TableName("sc_digital_collection_product_info_subscribe")
@ApiModel(value = "sc_digital_collection_product_info_subscribe 对象", description = "商品申购配置表")
public class DigitalCollectionProductInfoSubscribe extends SuperEntity implements Serializable {
    @ApiModelProperty(value = "商品id")
    private Long productId;

    @ApiModelProperty(value = "申购开始时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date subscribeStartTime;

    @ApiModelProperty(value = "申购结束时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date subscribeEndTime;

    @ApiModelProperty(value = "抽签开始时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date consistenceStartTime;

    @ApiModelProperty(value = "抽签结束时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date consistenceEndTime;

    @ApiModelProperty(value = "最大申购码数量")
    private Integer maxSubscribeNum;

    @ApiModelProperty(value = "所需凭证数量")
    private Integer voucherSum;

    @ApiModelProperty(value = "兑换的次数")
    private Integer subscribeSum;

    @ApiModelProperty(value = "最大的中签数量")
    private Integer maxSubscribe;

    @ApiModelProperty(value = "规则展示图")
    private String ruleImg;

    @ApiModelProperty(value = "道具id")
    private Long propId;

    @ApiModelProperty(value = "是否抽签")
    private Boolean isDraw;

    @ApiModelProperty(value = "是否有免费申购码配置")
    private Boolean freeSubscribe;

    @ApiModelProperty(value = "是否存在参与条件要求")
    private Boolean participationCondition;

    @ApiModelProperty(value = "条件类型: 1全部满足 2满足之一")
    private ProductInfoSubscribeEnum conditionType;

}
